package handler;


public class UnsupportedHandlerException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public final Class<? extends Handler> expectedHandler;
	public final Class<? extends Handler> givenHandler;

	public UnsupportedHandlerException(Class<? extends Handler> expectedHandler, Class<? extends Handler> givenHandler) {
		super(givenHandler.toString() + " is not an subclass of " + expectedHandler.toString());
		this.expectedHandler = expectedHandler;
		this.givenHandler = givenHandler;
	}




}
